#!/bin/sh
set -e

path=$(cd `dirname $0`; pwd)
echo "workdir=$path"

find $path -type f -name "*.vim" | xargs sed -i 's/\r$//g'

echo "
set runtimepath+=${path}

source $path/basic.vim
source $path/extended.vim
">~/.vimrc

echo "Installed Vim configuration successfully! Enjoy :-)"
